﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 商品明细表实体类
    /// </summary>
    public class Product
    {
        public string ProductID { get; set; }     //商品编号
        public string ProductName { get; set; }   //商品名称
        public string SpellingCode { get; set; }  //拼音码
        public string BarCode { get; set; }       //条形码 
        public string Special { get; set; }       //商品规格
        public string Unit { get; set; }          //计量单位
        public string Origin { get; set; }        //产地
        public string CategoryID { get; set; }    //商品类别
        public decimal PurchasePrice { get; set; }// 购进成本
        public decimal SalePrice { get; set; }    //销售成本
        public int Quantity { get; set; }         //商品数量

        
        public Product()
        {
            this.PurchasePrice = 0.00M;
        }
        public Product(string productID,string productName,string spellingCode,string barCode,string special,string unit,string origin,string categoryID,
            decimal purchasePrice,decimal salePrice,int quantity) 
        {
            this.ProductID     = productID;
            this.ProductName   = productName;
            this.SpellingCode  = spellingCode;
            this.BarCode       = barCode;
            this.Special       = special;
            this.Unit          = unit;
            this.Origin        = origin;
            this.CategoryID    = categoryID;
            this.PurchasePrice = purchasePrice;
            this.SalePrice     = salePrice;
            this.Quantity      = quantity;
        }
    }
}
